<?php

namespace App\Service\User\v1_3_3;

use App\Model\Setting\SettingUserTags;
use App\Model\UserProfile;
use App\Service\BaseService;

/**
 * 用户喜欢的标签列表
 */
class LovetagListService extends BaseService
{
    public function handle()
    {
        $userId = $this->getUserId();
        $profile = UserProfile::getProfile($userId);
        $ret['list'] = SettingUserTags::getList($profile->gender, SettingUserTags::TYPE_LOVE_TAG);
        $ret['select_max'] = 6;
        // log_user_result($userId, $ret);
        return $ret;
    }
}
